xen.git
19 years ago[TOOLS] Checks for libvncserver-dev and libsdl-dev.
Alastair Tse [Fri, 1 Dec 2006 15:12:48 +0000 (15:12 +0000)]
[TOOLS] Checks for libvncserver-dev and libsdl-dev.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Fix missing vncpasswd option for HVM domains.
Alastair Tse [Fri, 1 Dec 2006 14:35:33 +0000 (14:35 +0000)]
[XEND] Fix missing vncpasswd option for HVM domains.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years agoUpdate hgignore list.
kfraser@localhost.localdomain [Fri, 1 Dec 2006 14:30:42 +0000 (14:30 +0000)]
Update hgignore list.

19 years ago[XEN] Remove uses of 'extern inline'.
kfraser@localhost.localdomain [Fri, 1 Dec 2006 14:29:32 +0000 (14:29 +0000)]
[XEN] Remove uses of 'extern inline'.

Original patch by Christoph Egger at AMD.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LIBXC] Add new AP{I function xc_evtchn_bind_unbound_port().
kfraser@localhost.localdomain [Fri, 1 Dec 2006 14:25:36 +0000 (14:25 +0000)]
[LIBXC] Add new AP{I function xc_evtchn_bind_unbound_port().
Add a comment clarifying how this function differs from
xc_evtchn_alloc_unbound().
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Emulate XADD instruction.
kfraser@localhost.localdomain [Fri, 1 Dec 2006 13:57:46 +0000 (13:57 +0000)]
[XEN] Emulate XADD instruction.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEND] Reapply fix for ever expanding kernel_args in XendConfig
Alastair Tse [Fri, 1 Dec 2006 13:55:28 +0000 (13:55 +0000)]
[XEND] Reapply fix for ever expanding kernel_args in XendConfig

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Ensure config value types in XendConfig
Alastair Tse [Fri, 1 Dec 2006 13:53:04 +0000 (13:53 +0000)]
[XEND] Ensure config value types in XendConfig

Add definitions of what we expect the types to be for the values in
XendConfig and apply them when parsing SXP where all values are either
strings or list.

Also fix missing stdvga in HVM config.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[LINUX] dev/mem: Rename Xen's mmap_mem to xen_mmap_mem to
kfraser@localhost.localdomain [Fri, 1 Dec 2006 13:44:33 +0000 (13:44 +0000)]
[LINUX] dev/mem: Rename Xen's mmap_mem to xen_mmap_mem to
avoid conflict with the definition (which still exists and
is used) in drivers/char/mem.c.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoActually return something from bool0.
Ewan Mellor [Fri, 1 Dec 2006 13:25:33 +0000 (13:25 +0000)]
Actually return something from bool0.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoUpdate README to reflect moved library.
Ewan Mellor [Fri, 1 Dec 2006 13:09:30 +0000 (13:09 +0000)]
Update README to reflect moved library.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMerge.
Steven Smith [Fri, 1 Dec 2006 13:12:41 +0000 (13:12 +0000)]
Merge.

19 years ago[PVFB][TOOLS] Don't unwatch the framebuffer frontend's state node just
Steven Smith [Fri, 1 Dec 2006 13:11:53 +0000 (13:11 +0000)]
[PVFB][TOOLS] Don't unwatch the framebuffer frontend's state node just
because it want to state Closed.  Otherwise, we don't notice when
the node gets deleted, and can't reliably shut the backend down.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
19 years agoSet localtime, enable_audio, clock_offset, and std_vga back to being bools, not
Ewan Mellor [Fri, 1 Dec 2006 13:08:36 +0000 (13:08 +0000)]
Set localtime, enable_audio, clock_offset, and std_vga back to being bools, not
ints.  This is a recent breakage.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded log message for when a VM is deleted.
Ewan Mellor [Fri, 1 Dec 2006 13:07:19 +0000 (13:07 +0000)]
Added log message for when a VM is deleted.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoInclude the rotated xend.log.X in the bug report.
Ewan Mellor [Fri, 1 Dec 2006 13:06:15 +0000 (13:06 +0000)]
Include the rotated xend.log.X in the bug report.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[PVFB][TOOLS] Fix save/restore for domains with PV framebuffers.
Steven Smith [Fri, 1 Dec 2006 12:38:41 +0000 (12:38 +0000)]
[PVFB][TOOLS] Fix save/restore for domains with PV framebuffers.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
19 years agoLink test/test_bindings against libxenapi in the new location.
Ewan Mellor [Fri, 1 Dec 2006 12:24:42 +0000 (12:24 +0000)]
Link test/test_bindings against libxenapi in the new location.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[TOOLS][PVFB] Avoid zombie framebuffer backends.
Steven Smith [Fri, 1 Dec 2006 12:20:12 +0000 (12:20 +0000)]
[TOOLS][PVFB] Avoid zombie framebuffer backends.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
19 years ago[TOOLS] Remove some dead code.
Steven Smith [Fri, 1 Dec 2006 12:09:10 +0000 (12:09 +0000)]
[TOOLS] Remove some dead code.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
19 years agoMerge.
Steven Smith [Fri, 1 Dec 2006 12:03:38 +0000 (12:03 +0000)]
Merge.

19 years ago[PVFB] Make sure that framebuffer backend goes away when the domain
Steven Smith [Fri, 1 Dec 2006 12:03:15 +0000 (12:03 +0000)]
[PVFB] Make sure that framebuffer backend goes away when the domain
terminates, and that it cleans up its area of xenstore.

Tidy up argument parsing a little while I'm here.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
19 years ago[XEN] Quieten down HVM debug output.
kfraser@localhost.localdomain [Fri, 1 Dec 2006 11:54:53 +0000 (11:54 +0000)]
[XEN] Quieten down HVM debug output.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX] The removal of the console_use_vt hack was premature: it's still
Steven Smith [Fri, 1 Dec 2006 11:52:33 +0000 (11:52 +0000)]
[LINUX] The removal of the console_use_vt hack was premature: it's still
required if CONFIG_VT is enabled but the domain isn't currently
configured to use the PV framebuffer.  Put it back in, in a slightly
more palatable form.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
19 years ago[PVFB][TOOLS] Change the configuration syntax for PVFB backends to more
Steven Smith [Fri, 1 Dec 2006 11:49:30 +0000 (11:49 +0000)]
[PVFB][TOOLS] Change the configuration syntax for PVFB backends to more
closely match that of other devices.

This involves moving the logic for backend creation out of the image
handlers and in to the device handler, which is a much more sensible
place for it.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
19 years agoTidy up the creation of directories that Xend needs. This avoids potential
Ewan Mellor [Fri, 1 Dec 2006 11:32:32 +0000 (11:32 +0000)]
Tidy up the creation of directories that Xend needs.  This avoids potential
races in this creation.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agomerge
Alastair Tse [Fri, 1 Dec 2006 11:08:34 +0000 (11:08 +0000)]
merge

19 years ago[XEND] More fixes for HVM device configuration parsing
Alastair Tse [Fri, 1 Dec 2006 11:07:22 +0000 (11:07 +0000)]
[XEND] More fixes for HVM device configuration parsing

Removed duplicated acpi option, added missing stdvga option. Do not
output empty configurations in image sxp. Remove bug with vcpus
passing in device model.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[HVM] Add canonical address checks and generally clean up.
kfraser@localhost.localdomain [Fri, 1 Dec 2006 11:04:27 +0000 (11:04 +0000)]
[HVM] Add canonical address checks and generally clean up.

Based on a patch from Jan Beulich <jbeulich@novell.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEND] Fix missing serial and localtime args in device model for HVM
Alastair Tse [Fri, 1 Dec 2006 10:47:57 +0000 (10:47 +0000)]
[XEND] Fix missing serial and localtime args in device model for HVM

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XENOPROF] Fix oprofile for AMD SVM guests.
kfraser@localhost.localdomain [Fri, 1 Dec 2006 09:59:56 +0000 (09:59 +0000)]
[XENOPROF] Fix oprofile for AMD SVM guests.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM][VMX] Rename io.c -> intr.c.
kfraser@localhost.localdomain [Fri, 1 Dec 2006 09:51:13 +0000 (09:51 +0000)]
[HVM][VMX] Rename io.c -> intr.c.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoThis is Anthony Liguori's virtual framebuffer forward ported and
Steven Smith [Fri, 1 Dec 2006 09:48:32 +0000 (09:48 +0000)]
This is Anthony Liguori's virtual framebuffer forward ported and
extensively hacked based on feedback from xen-devel.

Its architecture is comparable to the common split device driver
architecture: xenfb and xenkbd modules serve as frontend in domU, and
the user space vncfb or sdlfb process serves as backend in dom0.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
19 years ago[HVM][VMX] Fix for CR8 acceleration on 64bit guest.
kfraser@localhost.localdomain [Fri, 1 Dec 2006 09:48:18 +0000 (09:48 +0000)]
[HVM][VMX] Fix for CR8 acceleration on 64bit guest.

For current CR8 acceleration, we do not call update_tpr_threshold() at
every VMEXIT. But at some situations, we cannot inject guest
interrupts in time. And at some critical time, it will bring up a blue
screen to 64bit Windows guest.

Now, we select to call update_tpr_threshold() at very VMEXIT
time. It's safe, and we do not see clear performance downgrade so
far.

Signed-off-by: Xiaohui Xin xiaohui.xin@intel.com
19 years ago[XEN] Fix error paths in p2m insertion code
Tim Deegan [Fri, 1 Dec 2006 09:28:14 +0000 (09:28 +0000)]
[XEN] Fix error paths in p2m insertion code
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoFix default for the authentication on the Xen-API server -- the default should
Ewan Mellor [Thu, 30 Nov 2006 20:16:54 +0000 (20:16 +0000)]
Fix default for the authentication on the Xen-API server -- the default should
be PAM, not none!

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix managed domain rebooting by only complaining about a VM name conflict if
Ewan Mellor [Thu, 30 Nov 2006 20:07:58 +0000 (20:07 +0000)]
Fix managed domain rebooting by only complaining about a VM name conflict if
the VM UUID conflicts as well.

Also, remove the previous_restart_time node when explicitly rebooting a guest --
the user ought to be able to drive reboots faster than the safety catch.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix registration on managed domains on xend restart.
Ewan Mellor [Thu, 30 Nov 2006 19:11:51 +0000 (19:11 +0000)]
Fix registration on managed domains on xend restart.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[XEN] Only parse the crashkernel command line parameter once on boot
Ian Campbell [Thu, 30 Nov 2006 18:44:55 +0000 (18:44 +0000)]
[XEN] Only parse the crashkernel command line parameter once on boot
not each time it is requested.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEN] Rename machine_shutdown to machine_reboot_kexec to better
Ian Campbell [Thu, 30 Nov 2006 18:44:54 +0000 (18:44 +0000)]
[XEN] Rename machine_shutdown to machine_reboot_kexec to better
reflect its purpose.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[LINUX] Fix backward compatibility with hypervisors which do not support kexec.
Ian Campbell [Thu, 30 Nov 2006 18:21:50 +0000 (18:21 +0000)]
[LINUX] Fix backward compatibility with hypervisors which do not support kexec.

Also do not rely on side effects in BUG_ON(x) -- use if(x) BUG() instead.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agoFix HVM shutdown when xend is restarted.
Ewan Mellor [Thu, 30 Nov 2006 18:08:34 +0000 (18:08 +0000)]
Fix HVM shutdown when xend is restarted.

Added a recreate call to ImageHandler, allowing the subclasses of that to
hook into the code that runs when xend restarts.  This allows us in particular
to reregister the watches for HVM shutdown, and read the PID of qemu-dm from
the store.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix-up reference to name_label.
Ewan Mellor [Thu, 30 Nov 2006 18:05:19 +0000 (18:05 +0000)]
Fix-up reference to name_label.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoReinstate the reboot-feature code that was accidentally lost as part of the
Ewan Mellor [Thu, 30 Nov 2006 17:28:51 +0000 (17:28 +0000)]
Reinstate the reboot-feature code that was accidentally lost as part of the
merge in changeset 12189.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[LINUX] Only initialise kexec in domain0.
Ian Campbell [Thu, 30 Nov 2006 17:53:59 +0000 (17:53 +0000)]
[LINUX] Only initialise kexec in domain0.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[QEMU] Do shift-key processing in QEMU monitor terminal when connected via VNC.
kfraser@localhost.localdomain [Thu, 30 Nov 2006 17:47:50 +0000 (17:47 +0000)]
[QEMU] Do shift-key processing in QEMU monitor terminal when connected via VNC.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
19 years ago[LIBXC] Fix Solaris build: Use XC_PAGE_SIZE not PAGE_SIZE.
kfraser@localhost.localdomain [Thu, 30 Nov 2006 17:36:03 +0000 (17:36 +0000)]
[LIBXC] Fix Solaris build: Use XC_PAGE_SIZE not PAGE_SIZE.
Signed-off-by: John Levon <john.levon@sun.com>
19 years ago[LINUX] Properly trigger XenbusStateClosed in blkfront
kfraser@localhost.localdomain [Thu, 30 Nov 2006 17:34:48 +0000 (17:34 +0000)]
[LINUX] Properly trigger XenbusStateClosed in blkfront

In some situations, like when error happens in block attach for
a guest in dom0, backend send us XenbusStateClosing notification.
However, as frontend were never properly initialized, it fails
to change its own state to XenbusStateClosed, leaving the system
in a dead-end state.

Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
19 years ago[QEMU] usb-uhci: Data buffer is too small
kfraser@localhost.localdomain [Thu, 30 Nov 2006 17:33:11 +0000 (17:33 +0000)]
[QEMU] usb-uhci: Data buffer is too small

The data buffer is only 1280 bytes long but the user-supplied length
can be as large as 0x7ff.  This patch extends the buffer to 2048
bytes.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
19 years ago[QEMU] Simpler workaround for guest writes to PCI config
kfraser@localhost.localdomain [Thu, 30 Nov 2006 17:32:16 +0000 (17:32 +0000)]
[QEMU] Simpler workaround for guest writes to PCI config
space that extend past byte 0xff.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX] Missing xenoprof.h header file for x86/64.
kfraser@localhost.localdomain [Thu, 30 Nov 2006 17:27:00 +0000 (17:27 +0000)]
[LINUX] Missing xenoprof.h header file for x86/64.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years ago[XEN] Remove use of 'inline' on functions accessed via pointers.
kfraser@localhost.localdomain [Thu, 30 Nov 2006 17:24:18 +0000 (17:24 +0000)]
[XEN] Remove use of 'inline' on functions accessed via pointers.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux/x86-64: missing agp.h
kfraser@localhost.localdomain [Thu, 30 Nov 2006 17:21:52 +0000 (17:21 +0000)]
linux/x86-64: missing agp.h

This causes data corruption and/or crashes when AGP is actually used.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[MINIOS] Improved unbind_all_ports().
kfraser@localhost.localdomain [Thu, 30 Nov 2006 17:17:28 +0000 (17:17 +0000)]
[MINIOS] Improved unbind_all_ports().
Signed-off-by: Jacob Gorm Hansen <jacobg@diku.dk>
19 years ago[XEN] Arch-specific softirq definitions.
kfraser@localhost.localdomain [Thu, 30 Nov 2006 17:14:09 +0000 (17:14 +0000)]
[XEN] Arch-specific softirq definitions.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
19 years ago[XEN] Proper segmentation emulation added to HVM emulated PTE writes.
kfraser@localhost.localdomain [Thu, 30 Nov 2006 17:07:26 +0000 (17:07 +0000)]
[XEN] Proper segmentation emulation added to HVM emulated PTE writes.
Sigmed-off-by: Keir Fraser <keir@xensource.com>
19 years agomerge
Ian Campbell [Thu, 30 Nov 2006 16:36:18 +0000 (16:36 +0000)]
merge

19 years ago[XEN] Do not spin at the end of machine_crash_kexec(). If there was no crash
Ian Campbell [Thu, 30 Nov 2006 16:32:24 +0000 (16:32 +0000)]
[XEN] Do not spin at the end of machine_crash_kexec(). If there was no crash
image then we should return to the caller who will either restart the machine
as normal or continue on as appropriate.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEND] Fix HVM configuration parsing typo for certain cfg values.
Alastair Tse [Thu, 30 Nov 2006 15:41:35 +0000 (15:41 +0000)]
[XEND] Fix HVM configuration parsing typo for certain cfg values.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Catch TypeErrors when unexpected SXP is encountered.
Alastair Tse [Thu, 30 Nov 2006 15:19:01 +0000 (15:19 +0000)]
[XEND] Catch TypeErrors when unexpected SXP is encountered.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Fix Xen API attribute access to be robust to missing keys.
Alastair Tse [Thu, 30 Nov 2006 14:53:14 +0000 (14:53 +0000)]
[XEND] Fix Xen API attribute access to be robust to missing keys.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Checks to make sure the image type is valid in configuration
Alastair Tse [Thu, 30 Nov 2006 14:51:46 +0000 (14:51 +0000)]
[XEND] Checks to make sure the image type is valid in configuration

The 'builder' (eg. image type) should either be 'hvm' or 'linux' as
image.py only supports these at the moment.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XENAPI] Update debugging scripts to support vbd_list
Alastair Tse [Thu, 30 Nov 2006 14:50:27 +0000 (14:50 +0000)]
[XENAPI] Update debugging scripts to support vbd_list

Add function to list all vbds attached to a VM.
Update VM config builder to specify the default as 'linux'

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Rename Xen API methods to match case of the API documentation
Alastair Tse [Thu, 30 Nov 2006 14:48:42 +0000 (14:48 +0000)]
[XEND] Rename Xen API methods to match case of the API documentation

Get rid of the case skewing in XendAPI.
Remove _to_xml methods because it has been removed from the latest API
docs.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Fix hidden vcpu state when calling xm-list
Alastair Tse [Thu, 30 Nov 2006 14:46:45 +0000 (14:46 +0000)]
[XEND] Fix hidden vcpu state when calling xm-list

Stores the vcpus number in xenstore so it is preserved on xend
restart.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Remove SXP from most parts of Xend.
Alastair Tse [Thu, 30 Nov 2006 14:44:58 +0000 (14:44 +0000)]
[XEND] Remove SXP from most parts of Xend.

Attempt to get rid of most SXP dependency in Xend except in
configuration parsing and certain places where it is
required.

XendConfig now stores configuration options similar to Xen API VM
and devices attributes but exports an SXP version to certain things
like xm and XendCheckpoint. All access to VM and device attributes
should now use Python dictionaries rather than the SXP parser.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years agoUpdate -xen0 defconfig for nhew kexec option
Ian Campbell [Thu, 30 Nov 2006 14:05:27 +0000 (14:05 +0000)]
Update -xen0 defconfig for nhew kexec option

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEN] Fix SIB byte decode when extended by REX.X and REX.B.
kfraser@localhost.localdomain [Thu, 30 Nov 2006 14:04:36 +0000 (14:04 +0000)]
[XEN] Fix SIB byte decode when extended by REX.X and REX.B.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agomerge
Ian Campbell [Thu, 30 Nov 2006 13:05:27 +0000 (13:05 +0000)]
merge

19 years ago[XEN] kexec: use parse_size_and_unit() when parsing crashkernel
Ian Campbell [Thu, 30 Nov 2006 12:39:35 +0000 (12:39 +0000)]
[XEN] kexec: use parse_size_and_unit() when parsing crashkernel
command line parameter.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEN] Fixup whitespace and tweak for Xen coding style.
Ian Campbell [Thu, 30 Nov 2006 12:38:51 +0000 (12:38 +0000)]
[XEN] Fixup whitespace and tweak for Xen coding style.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[LINUX] kexec: Backport fix for overlapping program headers in x86_64 linker script.
Ian Campbell [Thu, 30 Nov 2006 12:38:51 +0000 (12:38 +0000)]
[LINUX] kexec: Backport fix for overlapping program headers in x86_64 linker script.

This allows a native kernel built from the xen tree to be used as a
crash kernel on x86_64.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEN] Kexec / Kdump: x86_64 specific code
Ian Campbell [Thu, 30 Nov 2006 12:38:51 +0000 (12:38 +0000)]
[XEN] Kexec / Kdump: x86_64 specific code

This patch contains the x86_64 implementation of Kexec / Kdump for Xen.

Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
Signed-Off-By: Simon Horman <horms@verge.net.au>
19 years ago[XEN] Kexec / Kdump: x86_32 specific code
Ian Campbell [Thu, 30 Nov 2006 12:38:51 +0000 (12:38 +0000)]
[XEN] Kexec / Kdump: x86_32 specific code

This patch contains the x86_32 implementation of Kexec / Kdump for Xen.

Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
Signed-Off-By: Simon Horman <horms@verge.net.au>
19 years ago[XEN] Kexec / Kdump: Code shared between x86_32 and x86_64
Ian Campbell [Thu, 30 Nov 2006 12:38:51 +0000 (12:38 +0000)]
[XEN] Kexec / Kdump: Code shared between x86_32 and x86_64

This patch contains Kexec / Kdump code shared between x86_32 and x86_64.

Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
Signed-Off-By: Simon Horman <horms@verge.net.au>
19 years ago[XEN] Kexec / Kdump: Generic code
Ian Campbell [Thu, 30 Nov 2006 12:38:50 +0000 (12:38 +0000)]
[XEN] Kexec / Kdump: Generic code

This patch implements the generic portion of the Kexec / Kdump port to Xen.

Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
Signed-Off-By: Simon Horman <horms@verge.net.au>
19 years ago[XEN] Simplify x86_emulate interface.
kfraser@localhost.localdomain [Thu, 30 Nov 2006 10:57:28 +0000 (10:57 +0000)]
[XEN] Simplify x86_emulate interface.

 - No distinction between 'special' and 'normal' memory accesses.
 - No reliance on caller-supplied %cr2 value
 - Memory operations include segment identifier to allow callers
   to support non-zero-based segments

TODO:
 1. HVM emulations should take into account segment base, limit, and
    attributes.
 2. We ought to obey stack-size attribute on PUSH/POP instructions.
    Could extend the mode input field, or could add an extra call-out
    hook, or perhaps we don't care at all...

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAdded the console class to the diagram.
Ewan Mellor [Wed, 29 Nov 2006 23:40:40 +0000 (23:40 +0000)]
Added the console class to the diagram.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoState that getters and setters do not have asynchronous versions -- there's no
Ewan Mellor [Wed, 29 Nov 2006 23:34:33 +0000 (23:34 +0000)]
State that getters and setters do not have asynchronous versions -- there's no
point, because they ought to be immediate.

Tidy up the examples in the presentation and wire-protocol sections, and bring
them into sync with the main body text.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoNew modelling for consoles -- have them as separate classes attached to the
Ewan Mellor [Wed, 29 Nov 2006 23:31:07 +0000 (23:31 +0000)]
New modelling for consoles -- have them as separate classes attached to the
VM, much like the arrangements for devices.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agomerge
kfraser@localhost.localdomain [Wed, 29 Nov 2006 12:43:11 +0000 (12:43 +0000)]
merge

19 years ago[HVMLOADER] Clean up makefile, change TPM detection.
kfraser@localhost.localdomain [Wed, 29 Nov 2006 12:41:30 +0000 (12:41 +0000)]
[HVMLOADER] Clean up makefile, change TPM detection.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX] Avoid triggering the softlockup BUG when offline for too long.
kfraser@localhost.localdomain [Wed, 29 Nov 2006 12:16:59 +0000 (12:16 +0000)]
[LINUX] Avoid triggering the softlockup BUG when offline for too long.

After being offline for a long time, the softlockup  watchdog triggers
a BUG() on our faces. This is expected, as in fact, we spent more than
a fixed 10*HZ amount of time without touching the watchdog.

However, by inspecting the contents of stolen inside timer irq handler,
we can gain awareness of the fact, and do better than that.

Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
19 years agoFix xm new -F -- this fix was recently introduced for xm create.
Ewan Mellor [Wed, 29 Nov 2006 12:16:19 +0000 (12:16 +0000)]
Fix xm new -F -- this fix was recently introduced for xm create.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMove the assert under the protection of the in_transaction flag.
Ewan Mellor [Wed, 29 Nov 2006 12:15:45 +0000 (12:15 +0000)]
Move the assert under the protection of the in_transaction flag.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoSilence log message when trying to unregister a watch that's already been
Ewan Mellor [Wed, 29 Nov 2006 12:14:45 +0000 (12:14 +0000)]
Silence log message when trying to unregister a watch that's already been
unregistered -- this is not a problem.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[LINUX] console: Fix comment.
kfraser@localhost.localdomain [Wed, 29 Nov 2006 12:04:49 +0000 (12:04 +0000)]
[LINUX] console: Fix comment.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XENOPROFILE, LINUX] compilation fix on x86_64
kfraser@localhost.localdomain [Wed, 29 Nov 2006 11:40:10 +0000 (11:40 +0000)]
[XENOPROFILE, LINUX] compilation fix on x86_64
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years ago[HVMLOADER] Fix CFLAGS.
kfraser@localhost.localdomain [Wed, 29 Nov 2006 11:38:17 +0000 (11:38 +0000)]
[HVMLOADER] Fix CFLAGS.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX] console: Add option to use /dev/xvc0, major=204, minor=191.
kfraser@localhost.localdomain [Wed, 29 Nov 2006 11:37:59 +0000 (11:37 +0000)]
[LINUX] console: Add option to use /dev/xvc0, major=204, minor=191.

The major/minor has now been allocated to us by lanana.org.

This is based on previous patches from:
 Jeremy Katz <katzj@redhat.com>
 Amos Waterland <apw@us.ibm.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM][VMX] NX bit implies PAE can be enabled. If IA32 VMX guest finds
kfraser@localhost.localdomain [Wed, 29 Nov 2006 11:07:51 +0000 (11:07 +0000)]
[HVM][VMX] NX bit implies PAE can be enabled. If IA32 VMX guest finds
NX bit is there, it may enable PAE even if PAE bit is returned 0 by
CPUID.

Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
19 years ago[DOCS] Update for new Xen boot parameters.
kfraser@localhost.localdomain [Wed, 29 Nov 2006 10:58:35 +0000 (10:58 +0000)]
[DOCS] Update for new Xen boot parameters.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix for network routing setup. Enables proxy arp on dom0's externally visible interface.
kfraser@localhost.localdomain [Wed, 29 Nov 2006 10:57:30 +0000 (10:57 +0000)]
Fix for network routing setup. Enables proxy arp on dom0's externally visible interface.
Signed-off-by: H. Andres Lagar-Cavilla <andreslc@cs.toronto.edu>
19 years agoDiagnose a failure to open the xend-debug.log, and make the /var/log/xen
Ewan Mellor [Wed, 29 Nov 2006 10:56:02 +0000 (10:56 +0000)]
Diagnose a failure to open the xend-debug.log, and make the /var/log/xen
directory on startup, which was the most common reason to fail.
Closes bug #823.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[XEN] Emulator fixes.
kfraser@localhost.localdomain [Wed, 29 Nov 2006 10:48:06 +0000 (10:48 +0000)]
[XEN] Emulator fixes.

 1. Fix RIP-relative EA calculation. Immediate operands are never 64-bit.
 2. Displacements are sign-extended so used signed types.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoA trivial fix. login_unconditionally needs to be called with
Ewan Mellor [Tue, 28 Nov 2006 18:41:42 +0000 (18:41 +0000)]
A trivial fix. login_unconditionally needs to be called with
self.login_unconditionally to avoid  "global name
'login_unconditionally' is not defined"

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agoWait for device-bringup inside domain_start, outside the scope of the
Ewan Mellor [Tue, 28 Nov 2006 18:00:45 +0000 (18:00 +0000)]
Wait for device-bringup inside domain_start, outside the scope of the
domains_lock.  This makes the VM.start call blocking, but allows xm list to
work while it is blocked.  Move the handling of start_paused out of
XendDomainInfo.start as part of this.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoPlumb the "start_paused" flag through for VM.start and VM.resume. Do not
Ewan Mellor [Tue, 28 Nov 2006 17:28:43 +0000 (17:28 +0000)]
Plumb the "start_paused" flag through for VM.start and VM.resume.  Do not
unpause the VM on start by default.  This should fix problems seen recently
whereby devices are not attached to the VM by the time they boot, as
xm create was expecting to be able to wait for the devices before unpausing.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAllow DMA address width to be overridden with boot parameters:
kfraser@localhost.localdomain [Tue, 28 Nov 2006 17:15:22 +0000 (17:15 +0000)]
Allow DMA address width to be overridden with boot parameters:

In Xen: dma_bits=28 (for example)
In Linux: swiotlb_bits=28 (for example)

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAdd test_bindings back into the build -- it isn't integrated with the normal
Ewan Mellor [Tue, 28 Nov 2006 17:04:32 +0000 (17:04 +0000)]
Add test_bindings back into the build -- it isn't integrated with the normal
targets, because it introduces an additional dependency (libcurl), but
make test/test_bindings does the right thing.

Signed-off-by: Ewan Mellor <ewan@xensource.com>